/*
 * @Author: wangyongcun
 * @Date: 2021-08-13 10:19:22
 * @LastEditors: wangyongcun
 * @LastEditTime: 2021-08-14 19:59:05
 * @Description: 处理 main.ts
 */
declare module '@vue/runtime-core' {
    export interface ComponentCustomProperties {
        $axios: typeof axios,
        $config: any,
        $apis: any
    }
}
declare const config: any;

import { createApp } from 'vue'
import App from './App.vue'
import './styles/common.less';
import apis from './utils/apis'
import axios from './utils/axios'
import router from './utils/router'
import store from './utils/store'
const app = createApp(App);
app.use(router); //注册路由
app.use(store); //注册状态管理
app.config.globalProperties.$axios = axios;//挂载全局的axios
app.config.globalProperties.$apis = apis; //挂载全局的api
app.config.globalProperties.$config = config; //挂载全局的配置
app.mount('#app');//挂载实例